package com.ruoyi.car.api;

import com.ruoyi.car.api.domain.CheCar;
import com.ruoyi.car.api.factory.RemoteCarFallbackFactory;
import com.ruoyi.common.core.constant.SecurityConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(contextId = "remoteCarService", value = "ruoyi-car", fallbackFactory = RemoteCarFallbackFactory.class)

public interface RemoteCarService {

    /**
     * 获取车辆管理详细信息
     */
    @GetMapping(value = "/car/findById/{id}")
    public CheCar getById(@PathVariable("id") Long id, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);


}
